package com.yanqu.road.entity.activity.summerquiz;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Map;

@FieldTypeAnnotation(tableName = "t_c_summer_quiz_user_data", desc = "玩家竞猜")
public class CrossSummerQuizUserData extends DataObject {

    @FieldTypeAnnotation(select = true, update = true, desc = "活动ID")
    private int activityId;

    @FieldTypeAnnotation(update = true, desc = "玩家ID")
    private long userId;

    @FieldTypeAnnotation(desc = "夏日活动id")
    private int gameActivityId;

    @FieldTypeAnnotation(desc = "区服id")
    private long serverId;

    @FieldTypeAnnotation(desc = "竞猜详情")
    private Map<Integer, SummerQuizDetail> quizDetailMap;

    @FieldTypeAnnotation(desc = "竞猜积分")
    private long guessScore;

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        if(this.activityId != activityId) {
            this.activityId = activityId;
            setUpdateOption();
        }
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if(this.userId != userId) {
            this.userId = userId;
            setUpdateOption();
        }
    }

    public int getGameActivityId() {
        return gameActivityId;
    }

    public void setGameActivityId(int gameActivityId) {
        if(this.gameActivityId != gameActivityId) {
            this.gameActivityId = gameActivityId;
            setUpdateOption();
        }
    }

    public long getServerId() {
        return serverId;
    }

    public void setServerId(long serverId) {
        if(this.serverId != serverId) {
            this.serverId = serverId;
            setUpdateOption();
        }
    }

    public Map<Integer, SummerQuizDetail> getQuizDetailMap() {
        return quizDetailMap;
    }

    public void setQuizDetailMap(Map<Integer, SummerQuizDetail> quizDetailMap) {
        this.quizDetailMap = quizDetailMap;
        setUpdateOption();
    }

    public long getGuessScore() {
        return guessScore;
    }

    public void setGuessScore(long guessScore) {
        if(this.guessScore != guessScore) {
            this.guessScore = guessScore;
            setUpdateOption();
        }
    }
}
